public class Operator {

    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = a + (b - a) >> 1;
        System.out.println(c);
        int aa= 10;
        int bb = 20;
        int cc = aa + ((bb - aa) >> 1);
        System.out.println(cc);
    }

    public static void main5(String[] args) {
        int a=20;
        int b=40;
        int ret=(a>b?11:22);
        System.out.println(ret);

        boolean flg = true == true ? (true == true) ? false:true:true;
        System.out.println(flg);
    }

    public static void main4(String[] args) {
        int a = 10;
        int b = 20;

        System.out.println(a == b);
        System.out.println(a != b);
        System.out.println(a < b);
        System.out.println(a > b);
        System.out.println(a <= b);
        System.out.println(a >= b);
    }

    public static void main3(String[] args) {
        int a = 10;
        int b = a++;
        int c = ++a;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
    }

    public static void main2(String[] args) {
        int a = 10;
        double b =20;
        //a = (int)(a+b);
        a+=b;
        System.out.println(a);

    }

    public static void main1(String[] args) {
        System.out.println(5%3);
        System.out.println(-5%3);
        System.out.println(5%-3);
        System.out.println(-5%-3);
        System.out.println("------------");
        System.out.println(11%2.5);
        System.out.println(11.5%2.0);
    }
}
